package com.example.nonacademic_education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.nonacademic_education.entity.Department;
import com.example.nonacademic_education.util.R;

/**
 * @Author:yanghua
 * @Date:2023/4/18 17:15
 */
public interface DepartmentService  extends IService<Department> {
    /**
     * 添加机构
     * @param department
     * @return
     */
    R addOne(Department department);

    /**
     * 删除机构
     * @param id
     * @return
     */
    R deleteOne(Long id);

    /**
     * 修改
     * @param department
     * @return
     */
    R updateOne(Department department);

    /**
     * 条件查询
     * @param page
     * @param size
     * @param name
     * @return
     */
    R getList(int page,int size,String name);

    R getIdAndNameList(String name);
}
